// 菜单管理相关的ts类型

// 接口返回数据类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 菜单数据
export interface PermissionData {
  id?: number
  createTime: string
  updateTime: string
  pid: number
  type: number
  level: number
  select: boolean
  children?: PermissionList
}

export type PermissionList = PermissionData[]

export interface AllPermissionResponseData extends ResponseData {
  data: PermissionList
}

// 添加或修改菜单的参数ts类型
export interface MenuParams {
  id?: number
  code: string
  level: number
  name: string
  pid: number
}
